package com.xayy.health.mgt.model.vo;

import com.xayy.health.mgt.model.TreeNode;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;
import java.util.Map;

/**
 * @author Nie
 * @version V1.0
 * @date 2023/4/10 15:54
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class SatelliteNodeTreeVo extends TreeNode<SatelliteNodeTreeVo> implements com.xayy.health.core.utils.TreeNode<SatelliteNodeTreeVo,Long> {
    /**
     * 卫星id
     */
    private Long nodeId;

    /**
     * 卫星id
     */
    private String nodeName;

    /**
     * 起始节点名称,字段为pid
     */
    private String fromName;

    /**
     * 结束节点名称,字段为id
     */
    private String name;

    private int level;


    @Override
    public List<SatelliteNodeTreeVo> getChildList() {
        return getChildren();
    }

    @Override
    public void setNodeLevel(int level) {
        this.level = level;
    }

    @Override
    public void setChildList(List<SatelliteNodeTreeVo> childList) {
        setChildren(childList);
    }

    @Override
    public Long obtainId() {
        return getId();
    }

    @Override
    public Long obtainParentId() {
        return getPid();
    }

    private Map<String,Object> itemStyle;


}
